<template>
  <div id="app">
    <Nav></Nav>
    <TheSideNav></TheSideNav>
    <div class="page">
      <!-- <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav> -->
      <router-view />
    </div>
  </div>
</template>

<style>
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, rgb(151, 151, 151) 0%, rgba(145, 145, 145, 0.301) 99%);
  border-radius: 100px;
}

:root {
  padding: 0px;
  margin: 0px;
  font-size: 10px;
  font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans GB', 'Heiti SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  color: #303133;
  /*把高亮颜色设置为透明，也可以使用rgba的形式*/
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
  padding: 0;
}

.span,
.p {
  min-width: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

input {
  margin: 0;
  border: none;
  appearance: none;
  outline: none;
}

select {
  appearance: none;
  text-align: center;
}

img {
  width: 100%;
}

button {
  border: none;
  outline: none;
  font-size: 1.4rem;
  position: relative;
  transition: 0.25s all;
  background-color: transparent;
  cursor: pointer;
  color: #6f6c7f;
}

button:active {
  box-shadow: inset 0px 0px 100px #6f6c7f;
}

.page {
  width: calc(100% - 16.6rem);
  height: calc(100vh - 7rem);
  background-color: #F5F6FA;
  font-size: 1.6rem;
  padding: 7rem 0 0 16.6rem;
  overflow: hidden;
  overflow-y: auto;
}

.flex,
.flex-d {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-d {
  flex-direction: column;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(1, 1fr);
  grid-gap: 20px;
}

.disable {
  pointer-events: none;
}

.none {
  display: none;
}

.section,
.section-pc {
  width: calc(100% - 1.6rem - 1.6rem);
  /* height: calc(100% - 1.6rem - 1.6rem); */
  height: auto;
  margin: 1.6rem;
  background-color: #fff;
}

.centent {
  width: 100%;
  height: 100%;
}

/* 手机（小于768px） */
@media screen and (max-width: 768px) {
  .section-pc {
    margin-top: 0rem;
    width: 100%;
    height: 100%;
  }
}

/* 小屏幕（平板，大于等于 768px） */
@media screen and (min-width: 768px) {
  .section-pc {
    margin-top: 0rem;
    width: 720px;
    height: 100%;
  }
}

/* 中等屏幕（桌面显示器，大于等于 1200px */
@media screen and (min-width: 1200px) {
  .section-pc {
    width: 1110px;
    height: 100%;
  }
}
</style>
<script>
import Nav from '@/components/Nav.vue'
import TheSideNav from '@/components/TheSideNav.vue'

export default {
  components: {
    Nav,
    TheSideNav
  },

}
</script>
